<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<link rel="stylesheet" href="front/css/scrollBar.css">
	    <link rel="stylesheet" href="front/css/normal.css">
	    <link rel="stylesheet" href="front/content/css/projectAdm.css">
	</head>
<body style="box-shadow: none">
	<div class="boxStyle">
			<h4 style='padding:20px 0;text-align:center'>录入信息</h4>
			<ul class="carInfoTable">
				<li><span>录入人:</span>${pd.receive_person}</li>
				<li><span>标题:</span>${pd.receive_title}</li>
				<li><span>信息类型:</span>
					<c:if test="${pd.receive_type == 0}">其他</c:if>
					<c:if test="${pd.receive_type == 1}">律师函</c:if>
					<c:if test="${pd.receive_type == 2}">诉讼文件</c:if>
				</li>
				<li><span>添加时间:</span>${pd.receive_time}</li>	
				<li><span>结束时间:</span>${pd.receive_endtime}</li>
				<li><span>附件：</span>
				<c:if test="${!empty pd.receive_attachment && !empty pd.receive_name}">
				<a class="download operatea" onclick="downloadFile('${pd.receive_id}');">下载合同附件</a>
				</c:if>
				<c:if test="${empty pd.receive_attachment || empty pd.receive_name}">暂无附件</c:if>
				</li>		
					<li><span>执行状态:</span>
					<c:if test="${pd.receive_status == 0}">未执行</c:if>
					<c:if test="${pd.receive_status == 1}">执行中</c:if>
					<c:if test="${pd.receive_status == 2}">执行完毕</c:if>
					<li><span></span></li>
			</ul>
		<div class="clear"></div>
		<h4 style='padding:20px 0;text-align:center'>执行信息</h4>
			<ul class="carInfoTable">
			<c:if test="${pd.receive_status == 1}">
			 	<li><span>执行人:</span>${pd.revision_person}</li>
			 	<li><span>执行开始时间:</span>${pd.revision_begintime}</li>
			</c:if>
			<c:if test="${pd.receive_status == 2}">
				<li><span>执行人:</span>${pd.revision_person}</li>
			 	<li><span>执行开始时间:</span>${pd.revision_begintime}</li>
			 	<li><span>执行结束时间:</span>${pd.revision_endtime}</li>
			 	<li><span></span></li>
			</c:if>
			</ul>
        <p class="btn-box">
            <button onclick="javascript:history.back(-1);">返回</button>
        </p>
		</div>
		<script type="text/javascript">
		function downloadFile(Id){
			window.location.href="<%=basePath%>lawreceive/downloadFile.do?receive_id="+Id;
		}
		
		</script>
</body>
</html>